package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyDetail;
import cn.wolfcode.trip.base.query.QueryObject;
import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    /**
     * 获取攻略文章 及 具体文本内容
     * @param id : 文章的id
     * @return
     */
    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    /**
     * 分页及高查
     * @param qo
     * @return
     */
    List<StrategyDetail> selectForList(QueryObject qo);

    /**
     * 获取最大排序
     * @return
     */
    int selectMaxSequence();
}